package com.bizihang.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author 毕子航 951755883@qq.com
 * @date 2018/08/15
 */
@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter {

	/**
	 * 配置异步线程池配置
	 *
	 * @param configurer
	 */
	@Override
	public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
		super.configureAsyncSupport(configurer);
		/*
			configurer.setTaskExecutor():配置mvc异步线程池(可重用。默认不可重用)
			configurer.setDefaultTimeout():配置超时时间处理
			configurer.registerCallableInterceptors(); 配置拦截器
			configurer.registerDeferredResultInterceptors()
		 */
	}
}
